package com.tool.develop.controller;


import com.tool.develop.service.IUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户信息 前端控制器
 * </p>
 *
 * @author 酒徒
 * @since 2024-03-07
 */
@Slf4j
@RestController
@RequestMapping("/user")
@RequiredArgsConstructor
@Api(tags = "测试")
public class UserController {
    private final IUserService userService;

    @ApiOperation("获取全部信息")
    @GetMapping("/list")
    public List getList() {
        return userService.getList();
    }

}
